# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>

pkgname=gnucash-docs
pkgver=5.1
pkgrel=1
pkgdesc='Documentation for GnuCash'
arch=('any')
url='https://gnucash.org/docs.phtml'
license=('FDL')
depends=('yelp')
makedepends=('cmake')
source=(https://downloads.sourceforge.net/gnucash/$pkgname-$pkgver.tar.gz)
sha256sums=('59bd2b5ccc1efa7a034b38663e28f855b4ad16ee28b2248d61af8145097152f6')

prepare() {
  cd $pkgname-$pkgver
  mkdir build
}


build() {
  cd $pkgname-$pkgver/build

  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    ..
  make
}

package() {
  cd $pkgname-$pkgver/build
  make DESTDIR="${pkgdir}" install
}
